<?php
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2019/11/24
 * Time: 22:09
 */
namespace app\admin\model;

use think\Model;

class Emplist extends Model
{
    protected $table = 'tb_emp';
//    protected $name = 'tb_emp';

    public function dept()
    {
        return $this->belongsTo('Dept', 'Edeptno');
    }

    public function addEmp($data)
    {
        $this->save($data);
    }
}